Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions


Creating and Disposing of Time Bases

This section discusses the Movie Toolbox functions your application can use to create and dispose of time bases.

The NewTimeBase function lets you create a new time base. You can use the DisposeTimeBase function to dispose of a time base once you are finished with it.

Time bases rely on either a clock component or another time base for their time source. You can use the SetTimeBaseMasterTimeBase function to cause one time base to be based on another time base. The GetTimeBaseMasterTimeBase allows you to determine the master time base of a given time base.

You can assign a clock component to a time base; that clock then acts as the master clock for the time base. You can use the SetTimeBaseMasterClock function to assign a clock component to a time base. The GetTimeBaseMasterClock function enables you to determine the clock component that is assigned to a time base. You can change the offset between a time base and its time source by calling the SetTimeBaseZero function.

You can set the time source of a movie by calling the SetMovieMasterTimeBase and SetMovieMasterClock functions.

Note
Although most time base functions can be used at interrupt time, several of the Movie Toolbox functions cannot. These functions are noted in the sections that follow.

Subtopics
NewTimeBase
DisposeTimeBase
SetMovieMasterClock
SetMovieMasterTimeBase
SetTimeBaseMasterClock
GetTimeBaseMasterClock
SetTimeBaseMasterTimeBase
GetTimeBaseMasterTimeBase
SetTimeBaseZero

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996